package com.linkage.lcims.base.po.business;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
@SuppressWarnings("serial")
public class BdTollMonthRentPK implements Serializable {

    /** identifier field */
    private Integer groupid;

    /** identifier field */
    private Integer accounttype;

    /** identifier field */
    private Integer beginaddspan;

    /** full constructor */
    public BdTollMonthRentPK(Integer groupid, Integer accounttype, Integer beginaddspan) {
        this.groupid = groupid;
        this.accounttype = accounttype;
        this.beginaddspan = beginaddspan;
    }

    /** default constructor */
    public BdTollMonthRentPK() {
    }

    /** 
     *                @hibernate.property
     *                 column="groupid"
     *             
     */
    public Integer getGroupid() {
        return this.groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    /** 
     *                @hibernate.property
     *                 column="accounttype"
     *             
     */
    public Integer getAccounttype() {
        return this.accounttype;
    }

    public void setAccounttype(Integer accounttype) {
        this.accounttype = accounttype;
    }

    /** 
     *                @hibernate.property
     *                 column="beginaddspan"
     *             
     */
    public Integer getBeginaddspan() {
        return this.beginaddspan;
    }

    public void setBeginaddspan(Integer beginaddspan) {
        this.beginaddspan = beginaddspan;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("groupid", getGroupid())
            .append("accounttype", getAccounttype())
            .append("beginaddspan", getBeginaddspan())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof BdTollMonthRentPK) ) return false;
        BdTollMonthRentPK castOther = (BdTollMonthRentPK) other;
        return new EqualsBuilder()
            .append(this.getGroupid(), castOther.getGroupid())
            .append(this.getAccounttype(), castOther.getAccounttype())
            .append(this.getBeginaddspan(), castOther.getBeginaddspan())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getGroupid())
            .append(getAccounttype())
            .append(getBeginaddspan())
            .toHashCode();
    }

}
